package com.yql.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {
    private Long orderId;
    private Date orderTime;
    private User user;
    private Status orderStatus;
    private Integer count;
    private BigDecimal money;
    private List<Goods> goodsList;

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderTime=" + orderTime +
                ", user=" + user +
                ", orderStatus=" + orderStatus +
                ", count=" + count +
                ", money=" + money +
                ", goodsList=" + goodsList +
                '}';
    }

    public Order() {
    }

    public Order(Long orderId, Date orderTime, User user, Status orderStatus, Integer count, BigDecimal money, List<Goods> goodsList) {
        this.orderId = orderId;
        this.orderTime = orderTime;
        this.user = user;
        this.orderStatus = orderStatus;
        this.count = count;
        this.money = money;
        this.goodsList = goodsList;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Status getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Status orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }
}
